package com.linkage.bss.crm.packagemgr.dao;

import java.util.List;
import java.util.Map;

import com.linkage.bss.commons.dao.Page;
import com.linkage.bss.crm.packagemgr.model.Package;
import com.linkage.bss.crm.packagemgr.model.PackageParameter;

/**
 *
 * 包管理DAO层
 * @author sgl
 * @date 2013-4-16
 * @version 1.0
 */
public interface IPackageManagerDAO {

	/**
	 *
	 * 获得包数量
	 * @param map
	 * @return int
	 */
	public int getPackageByCondCount(Map map);

	/**
	 *
	 * 获得包集合
	 * @param map
	 * @param page
	 * @return List<Package>
	 */
	public List<Package> getPackageByCond(Map map, Page page);

	/**
	 *
	 * 根据包Id查询包基本信息)
	 *  @param map
	 *  @return
	 */
	public Package getPackageById(Long packageID);

	public List<PackageParameter> getPackageParamByID(Long packageID);

	public void insertPackageInfo(Package pack);

	public void insertPackageParameter(PackageParameter packParam);

	public void updatePackageInfo(Package pack);

	public void delPackageParamByPackage(Long packageId);

	public void delPackageById(Long packageId);

}
